<body>
<div class="path fn-clear"><span class="fb">首页</span><a href="{url('channel/channel')}">栏目管理</a>{$path}</div>
<div class="ui-form">
<form id="form" action="{url('channel/channeledit')}">
<input type="hidden" name="fid" value="{$fid}"/>
<input type="hidden" name="pid" value="{$pid}"/>
<input type="hidden" name="exts_mid" value="{$info['exts_mid']}"/>
<table>
{if $pid == 0}
    <tr><th>所属站点:</th><td>
      <select class="select" name="language">
        {if !$siteid}<option value="0" checked="checked">默认站点</option>{/if}
      {loop $language $rs}
      	{if !$siteid}
        <option value="{$rs['id']}" {if $info['language'] == $rs['id']}selected{/if}>{$rs['name']}</option>
        {elseif $siteid == $rs['id']}
        <option value="{$rs['id']}" {if $info['language'] == $rs['id']}selected{/if}>{$rs['name']}</option>
        {/if}
      {/loop}
      </select> <span class="gray">不选进入默认站点,且子类继承根类。</span>
    </td>
{/if}
    <tr><th>栏目类型:</th><td>
            <select class="select" name="type">
              <option value="0" {if $info['type'] == 0}selected{/if}>资源列表--[添加内容]</option>
              <option value="1" {if $info['type'] == 1}selected{/if}>网站频道--[禁止内容]</option>
              <option value="2" {if $info['type'] == 2}selected{/if}>栏目跳转--[直接跳转]</option>
            </select>
        </td></tr>
    <tr><th>栏目名称:</th><td><input onClick="dateplus('name')" id="name" class="input" datatype="*" type="text" name="name" value="{$info['name']}" /><span id="vform"></span></td></tr>
    <tr> <th>栏目URL:</th><td><input class="input w300" type="text" name="url" value="{$info['url']}" /><span class="gray">栏目跳转网址。</span></td></tr>
    <tr><th>前台是否显示:</th><td>显示: <input{if $info['locks']} checked="checked" {/if}class="radio" type="radio" name="locks" value="1"> 不显示: <input{if !$info['locks']} checked="checked" {/if} class="radio" type="radio" name="locks" value="0"></td>
    </tr>
    <tr>
        <th>频道模板:</th><td><input class="input" name="tpl_channel" id="tpl_channel" type="text" value="{$info['tpl_channel']}" />
        <input url="{url('themes/selecttpl',array(id=>'tpl_channel'))}" title="模板选择" value="模板选择" type="button" class="button win" />
        <span class="gray">网站频道页面模版</span></td>
    </tr>  
    <tr>
        <th>栏目模板:</th><td><input class="input" name="tpl_list" id="tpl_list" type="text" value="{$info['tpl_list']}" />
        <input url="{url('themes/selecttpl',array(id=>'tpl_list'))}" title="模板选择" value="模板选择" type="button" class="button win" />
        <span class="gray">内容的最终列表页面</span></td>
    </tr>
    <tr>
        <th>内容模板:</th><td><input class="input" name="tpl_content" id="tpl_content" type="text" value="{$info['tpl_content']}" />
        <input url="{url('themes/selecttpl',array(id=>'tpl_content'))}" title="模板选择" value="模板选择" type="button" class="button win" /></td>
    </tr>
     <tr>
        <th>附加模型模板:</th><td><input class="input" name="tpl_plus" id="tpl_plus" type="text" value="{$info['tpl_plus']}" />
        <input url="{url('themes/selecttpl',array(id=>'tpl_plus'))}" title="模板选择" value="模板选择" type="button" class="button win" />
        <span class="gray">如“绑定附加模型”则选择</span></td>
    </tr>
    {loop $module $vo}
    <tr><th>{$vo['title']}:</th><td>{$vo['input']} <span class="gray">{$vo['msg']}</span></td></tr>
    {/loop}
</table>
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','Dialog','Form',function(){ 
    $('#form').cpFormPage();
    $(".win").click(function(){
        $(this).cpWindows();
    });
})
</script>
</body>
